/**系统管理
 * Auth login 验证登录 roles 验证登录且验证权限
 * **/
import Layout from '@/views/layout/Layout'
const patrolRouter = {
    path: '/patrol',
    component: Layout,
    // redirect: '/patrol/index',
    name: 'patrol',
    meta: {
        parent: "patrol",
        title: "巡查",
        Auth: 'login'
    },
    children: [{
        path: '/patrol/inspectionRecord',
        component: () =>
            import('@/views/patrol/inspectionRecord/index'),
        name: 'inspectionRecord',
        meta: {
            title: '巡检记录',
            icon: "wgjl",
            desc: "巡检记录",
            Auth: "080100"
        }
    },
    {
        path: '/patrol/statistics',
        component: () =>
            import('@/views/patrol/statistics/index'),
        name: 'statistics',
        meta: {
            title: '统计分析',
            icon: "wgjl",
            desc: "统计分析",
            Auth: "080200"
        }
    },
    {
        path: '/patrol/area',
        component: () =>
            import('@/views/patrol/area/index'),
        name: 'area',
        meta: {
            title: '区域管理',
            icon: "wgjl",
            desc: "区域管理",
            Auth: "080300"
        }
    },
    {
        path: '/patrol/equipment',
        component: () =>
            import('@/views/patrol/equipment/index'),
        name: 'equipment',
        meta: {
            title: '设备管理',
            icon: "wcyj",
            desc: "设备管理",
            Auth: "080400"
        }
    },
    {
        path: '/patrol/approve',
        component: () =>
            import('@/views/patrol/approve/index'),
        name: 'building',
        meta: {
            title: '审批流程',
            icon: "wgyj",
            desc: "审批流程",
            Auth: "080500"
        }
    },
    {
        path: '/patrol/dictionary',
        component: () =>
            import('@/views/patrol/dictionary/index'),
        name: 'dictionary',
        meta: {
            title: '数据字典',
            icon: "wgyj",
            desc: "数据字典",
            Auth: "080600"
        }
    }
    ]
}

export default patrolRouter